﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ivy.Common.Framework.Base;
using System.Runtime.Serialization;


namespace Ivy.UserRegistration.Entity
{
    [Serializable]
    [DataContract]
    public class Sys_RoleMaster : DataEntityBase
    {
        #region  Variable & constant
        Int32 lRoleKey = -1;

        string lRoleCode = string.Empty;
        string lRoleName = string.Empty;
        string lRoleDescription = string.Empty;
        #endregion  Variable & constant

        #region Constructor & Destructor
        public Sys_RoleMaster()
            : base()
        {
            this.Sys_DeleteType = DeleteType.SoftDeleteOnly;
        }
        #endregion Constructor & Destructor

        #region Properties
        [DataMember]
        public Int32 RoleKey
        {
            get
            {
                return lRoleKey;
            }
            set
            {
                lRoleKey = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        public string RoleCode
        {
            get
            {
                return lRoleCode;
            }
            set
            {
                lRoleCode = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string RoleName
        {
            get
            {
                return lRoleName;
            }
            set
            {
                lRoleName = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string RoleDescription
        {
            get
            {
                return lRoleDescription;
            }
            set
            {
                lRoleDescription = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        #endregion Properties

        #region Public Methods
        #endregion Public Methods

        #region Events
        #endregion Events

        #region Private Methods
        #endregion Private Methods
    }
}
